package com.sl.hx.shop.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;


public class SplashBean implements Parcelable{


    /**
     * id : 1
     * logosplash : http://www.hxgo.shengli1718.com/Uploads/admin/image/2018-11-27/5bfd0d1dacceb.png
     * state : 0
     * url : null
     * favorites_id : null
     * name:qqq
     */

    private String id;
    private String logo;
    private int state;
    private String url;
    private int favorites_id;
    private String name;

    protected SplashBean(Parcel in) {
        id = in.readString();
        logo = in.readString();
        state = in.readInt();
        url = in.readString();
        favorites_id = in.readInt();
        name = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(logo);
        dest.writeInt(state);
        dest.writeString(url);
        dest.writeInt(favorites_id);
        dest.writeString(name);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<SplashBean> CREATOR = new Creator<SplashBean>() {
        @Override
        public SplashBean createFromParcel(Parcel in) {
            return new SplashBean(in);
        }

        @Override
        public SplashBean[] newArray(int size) {
            return new SplashBean[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getFavorites_id() {
        return favorites_id;
    }

    public void setFavorites_id(int favorites_id) {
        this.favorites_id = favorites_id;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
